home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / COMMON / TOOLS / VCM / VCM.MDB / VcmComponentContainer / 14_Cabinet / DBDOC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-18  |  1.9 KB  |  82 lines

  1. // DBDoc.h : interface of the CDBViewDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes and
  4. // Templates (MFC&T).
  5. // Copyright (C) 1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // MFC&T Reference and related electronic documentation provided
  10. // with the library.  See these sources for detailed information
  11. // regarding the MFC&T product.
  12. //
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15.  
  16. #ifndef __DBDOC_H__
  17. #define __DBDOC_H__
  18.  
  19. /////////////////////////////////////////////////////////////////////////////
  20. // Forward declarations
  21.  
  22. class CDBListView;
  23. class CDBTreeView;
  24.  
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // Class CDBViewDoc
  28.  
  29. class CDBViewDoc : public CDocument
  30. {
  31. protected: // create from serialization only
  32.     CString m_strConnect;
  33.     CDataSource m_Connect;
  34.     CSession    m_Session;
  35.     CDBViewDoc();
  36.     DECLARE_DYNCREATE(CDBViewDoc)
  37.  
  38. // Attributes
  39. public:
  40.     CString GetConnect();
  41.     CString GetDSN();
  42.     void RefreshViews();
  43.     CDBListView* m_pListView;
  44.     CDBTreeView* m_pTreeView;
  45.  
  46. // Operations
  47. public:
  48.  
  49. // Overrides
  50.     // ClassWizard generated virtual function overrides
  51.     //{{AFX_VIRTUAL(CDBViewDoc)
  52.     public:
  53.     virtual BOOL OnNewDocument();
  54.     virtual void Serialize(CArchive& ar);
  55.     virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  56.     //}}AFX_VIRTUAL
  57.  
  58. // Implementation
  59. public:
  60.     CDataSource* GetDataSource();
  61.     virtual ~CDBViewDoc();
  62. #ifdef _DEBUG
  63.     virtual void AssertValid() const;
  64.     virtual void Dump(CDumpContext& dc) const;
  65. #endif
  66.  
  67. protected:
  68.  
  69. // Generated message map functions
  70. protected:
  71.     //{{AFX_MSG(CDBViewDoc)
  72.     afx_msg void OnFileOpen();
  73.     //}}AFX_MSG
  74.     DECLARE_MESSAGE_MAP()
  75. };
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78.  
  79. #endif // __DBDOC_H__
  80.  
  81. /////////////////////////////////////////////////////////////////////////////
  82.